import request from '@/utils/request'


// 查询教师管理列表
export function listTeacher(query) {
  return request({
    url: '/score/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询教师管理列表
export function listTeacherSimple(query) {
  return request({
    url: '/score/teacher/listSimple',
    method: 'get',
    params: query
  })
}

// 查询教师管理详细
export function getTeacher(teacherId) {
  return request({
    url: '/score/teacher/' + teacherId,
    method: 'get'
  })
}

// 新增教师管理
export function addTeacher(data) {
  return request({
    url: '/score/teacher',
    method: 'post',
    data: data
  })
}

// 修改教师管理
export function updateTeacher(data) {
  return request({
    url: '/score/teacher',
    method: 'put',
    data: data
  })
}

// 修改教师状态
export function changeTeacherStatus(data) {
  return request({
    url: '/score/teacher',
    method: 'put',
    data: data
  })
}

// 删除教师管理
export function delTeacher(teacherId) {
  return request({
    url: '/score/teacher/' + teacherId,
    method: 'delete'
  })
}

//钉钉用教师用户信息页面 课程列表

export function getCourseListForOneTeacher() {
  return request({
    url: '/score/teacher/getCourseListForOneTeacher',
    method: 'get',
  })
}
//钉钉用教师用户信息页面 课程所属行政班列表

export function getMetaclassList(courseclassId) {
  return request({
    url: '/score/teacher/getMetaclassList/'+courseclassId,
    method: 'get',
  })
}

export function Import(){
	return request({
		url: '/score/teacher/importData',
		method: 'post'
	})
}
